import { del, post, put, } from '../utils/request'
const headers = {
  'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
}
export const accountListAPI = (data) => {
  return post('/admin/basic/role/list', data,)
}
// 新增账号
export const accountAddAPI = (data) => {
  return post('/admin/basic/role/add', data)
}
// 重置密码
export const accountResetAPI = (data) => {
  return post('/admin/basic/role/resetPassword', data, { headers })
}
// 删除用户
export const accountDelAPI = (data) => {
  return post(`/admin/basic/role/delete`, data, { headers })
}

// 分配角色
export const accountAssignRoleAPI = (data) => {
  return post('/admin/basic/role/assignRole', data, { headers })
}

// 更新账号
export const accountUpdateAPI = (data) => {
  return post('/admin/basic/role/update', data, { headers })
}